package com.business.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.business.common.annotation.Excel;
import com.business.common.core.domain.BaseEntity;

/**
 * 公司对象 company
 * 
 * @author ruoyi
 * @date 2025-06-14
 */
public class Company extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 成立日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "成立日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date foundedDate;

    /** 总部 */
    @Excel(name = "总部")
    private String headquarters;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setFoundedDate(Date foundedDate) 
    {
        this.foundedDate = foundedDate;
    }

    public Date getFoundedDate() 
    {
        return foundedDate;
    }

    public void setHeadquarters(String headquarters) 
    {
        this.headquarters = headquarters;
    }

    public String getHeadquarters() 
    {
        return headquarters;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("foundedDate", getFoundedDate())
            .append("headquarters", getHeadquarters())
            .toString();
    }
}
